package io.acna.blog.service.impl;

import io.acna.basedao.mybatis.service.impl.BaseService;
import io.acna.blog.dao.CommentMapper;
import io.acna.blog.entities.Comment;
import io.acna.blog.service.ICommentService;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;

@Service(version = "0.0.1")
public class CommentService extends BaseService<Comment> implements
		ICommentService {

	private final CommentMapper commentDao;
	public static final String COLUMN_NAME = "comment_id";
	public static final String FIELD_ID_NAME = "commentId";

	@Autowired
	public CommentService(CommentMapper commentDao) {
		super(commentDao, COLUMN_NAME, FIELD_ID_NAME);
		this.commentDao = commentDao;
	}

	@Override
	public long save(Long articleId, Comment comment) {
		return 0;
	}
}
